<?php
 require "../document/class_corpus.php";
 require "../document/class_document.php";
 require "../document/class_document_xml.php";

 require "../files/tool_files_dirs.php";
 require "../misc/class_tag.php";

 require "../tree/class_tree.php";
 require "../tree/class_tree_xhtml.php";
 require "../tree/class_structure.php";
 require "../tree/tool_tree.php";

 require "../array/tool_array.php";

 require "../maths/tool_maths.php";

 require "../string/tool_string.php";
 require "../string/class_segment.php";

 require "../pdo/class_sql_document.php";

 require "../pear_graph/tool_pear_graph.php";

 require "../misc/tool_color.php";


$exp=new sql_experience("align_ecr_selected");
$array_obj_sql=$exp->reader_experience();
$data_lg=$array_obj_sql['sql_document']->reader_all_lg();
$array_data=array();

foreach($data_lg as $lg){
  $res = $array_obj_sql['sql_bloc']->reader_lg2array($lg[0]);
  $cpt = 0;
  foreach($res as $l){
    $cpt += mb_strlen($l[1]) ;
  }
  print "$lg[0] = $cpt\n";
}
die();

?>
